package oop6;

import oop5.Cat;
import oop5.Dog;
import oop5.Pet;

/**
 * @author oldliu
 * @since 1.0
 */
public class Zoo {
    private String name = "肥东县人民动物园";

    public Pet sell(int money) {
        if (money >= 500000) {
            return new Tiger("金渐层", 90, 90, "公");
        }
        if (money >= 20000) {
            return new Parrot("小花");
        }
        if (money > 5000) {
            return new Dog("大白", 100, 100, "母", "哈巴");
        }
        if (money >= 1000) {
            return new Cat("灰灰", 100, 60, "公");
        }
        return null;
    }
}
